//
//  BDBeidouHeaderView.m
//  BeidouMall
//
//  Created by qie on 16/5/26.
//  Copyright © 2016年 qie. All rights reserved.
//

#import "BDBeidouHeaderView.h"

@implementation BDBeidouHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)imageButtonPressed:(UIButton *)sender {
    [_delegate imageViewChangeMethod:sender];
    _imageView.image = sender.selected ? [UIImage imageNamed:@"beidou_gou"] : [UIImage imageNamed:@"beidou_gou2"];
}

- (IBAction)shopButtonPressed:(UIButton *)sender {
    [_delegate shopButtonMethod:sender];
}

- (IBAction)editButtonPressed:(UIButton *)sender {
    sender.selected = !sender.selected;
    [_delegate editButtonMethod:sender];
}


@end
